* {
    padding: 0;
    margin: auto;
}

html {
    width: 100%;
    height: 100%;
    display: table;
}

body {
    display: table-cell;
    background-color: black;
    box-sizing: border-box;
    border: 0.3em solid #e472a6;
    /* user-select: none; */
}

.msg {
    width: 40%;
    height: 20%;
    position: relative;
}

.color {
    width: 6%;
    height: 16%;
    background-color: #fa6790;
    position: fixed;
    top: 5%;
    left: -1%;
    cursor: pointer;
    z-index: 3;
}

.arrow {
    float: left;
}

#arrow {
    cursor: pointer;
}

.msg-input {
    margin: 1%;
}

.msg-contain {
    position: absolute;
    width: 100%;
    right: 0;
    bottom: 0;
    /* transform: translateX(-100%); */
    transition: all linear 3s;
    white-space: nowrap;
    z-index: 1;
}

#text-input {
    display: inline-block;
    padding: 2%;
    /* width: 70%; */
    width: 470px;
    overflow: hidden;
    font-size: 1.5em;
    margin: 10px;
    box-shadow: 0.1em 3px 30px rgb(189, 87, 104);
    border: none;
    outline: none;
    background: -webkit-linear-gradient(left, #a0328c, #e44d51);
    /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(right, #a0328c, #e44d51);
    /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(right, #a0328c, #e44d51);
    /* Firefox 3.6 - 15 */
    background: linear-gradient(to right, #a0328c, #e44d51);
    /* 标准的语法 */
    white-space: nowrap;
    overflow: hidden;
}

#msg-button {
    width: 94%;
    margin-left: 75px;
    display: flex;
}

#msg-button li {
    flex: 1;
    margin-right: 2%;
}

#msgbuttona {
    background-color: #a263b1;
    cursor: pointer;
}

#msgbuttonb {
    background-color: #775b8d;
}

#msgbuttonc {
    background-color: #58536f;
}

#msgbuttond {
    background-color: #4e6465;
}

.apng {
    position: absolute;
    width: 40%;
    display: none;
    z-index: 1;
}

.png {
    width: 18%;
    float: left;
    margin: 3px;
    border: 1px solid grey;
    cursor: pointer;
    z-index: 2;
}

.png img {
    width: 100%;
}

.send {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    font-size: 1.5em;
    /* padding: 1.5%; */
    width: 15%;
    height: 50%;
    background-color: #fa6790;
    border: none;
    box-shadow: 0.1em 3px 30px rgb(189, 87, 104);
    outline: none;
    cursor: pointer;
    margin: 1%;
}

.text {
    height: 80%;
    position: relative;
    overflow: hidden;
}

.text-contain {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 90%;
    height: 85%;
    background-color: #243664;
    border-top: 0.1em solid #bf6e87;
    border-bottom: 0.1em solid #925e7c;
    overflow: hidden;
}

.dvp {
    position: absolute;
    font-size: 29px;
    color: white;
    right: 0;
    animation: run 6s 1;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    border-bottom: 0.2em solid #7086ac;
    white-space: nowrap;
}

.dvp:hover {
    animation-play-state: paused;
}

.tan {
    display: none;
    position: absolute;
    cursor: default;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tan-contain {
    position: relative;
    transform: translateY(100%);
    width: 30%;
    height: 30%;
    background: -webkit-linear-gradient(left, #a0328c, #e44d51);
    /* Safari 5.1 - 6.0 */
    background: -o-linear-gradient(right, #a0328c, #e44d51);
    /* Opera 11.1 - 12.0 */
    background: -moz-linear-gradient(right, #a0328c, #e44d51);
    /* Firefox 3.6 - 15 */
    background: linear-gradient(to right, #a0328c, #e44d51);
    /* 标准的语法 */
    border-radius: 20px;
    text-align: center;
}

.tan-close {
    float: right;
    margin-right: 10%;
    margin-top: 10px;
    font-size: 30px;
    z-index: 10;
}

.tan-close:hover {
    color: white;
    cursor: pointer;
}

.tan-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
}


/* .dvp p {
  display: inline;
  font-size: 2em;
  margin-bottom: -10px;
  white-space: nowrap;
} */

@media screen and (max-width: 1000px) {
    .tan-contain {
        width: 60%;
    }
    .tan-content {
        font-size: 1.5em;
    }
    #text-input {
        width: 53%;
    }
    .msg {
        width: 50%;
    }
    .msg-contain {
        transform: translateX(-20%);
    }
    .send {
        top: 30%;
        width: 35%;
    }
}


/* @media screen and (max-height: 500px) {
  .msg-contain {
    height: 80%;
  }
} */

@keyframes run {
    0% {
        right: 0;
        transform: translateX(100%);
    }
    100% {
        right: 120%;
        /* transform: translateX(-100%); */
    }
}